package com.paishen.peiniwan.module.profile;

import android.app.ActionBar;
import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.FrameLayout;

import com.paishen.peiniwan.BaseActivity;
import com.paishen.peiniwan.R;
import com.paishen.common.widget.TitleLayout;


/**
 * Created by Administrator on 2015/12/1.
 */
public class ProfileBalanceChargeActivity extends BaseActivity {

    private TitleLayout layTitle;
    private MainProfileBalanceChargeLayout layBalanceCharge;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        FrameLayout layContainer = new FrameLayout(this);

        layBalanceCharge = new MainProfileBalanceChargeLayout(this);
        layContainer.addView(layBalanceCharge);

        layTitle = new TitleLayout(this);
        layTitle.setLayoutParams(new ActionBar.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
        layTitle.pushContent(makeBackView(), getString(R.string.balance_charge), null, false);
        layContainer.addView(layTitle);

        setContentView(layContainer);
    }
}
